<?php include template('header','common');?>
<link rel="stylesheet" type="text/css" href="{__ROOT__}template/default/statics/css/join-tuoban.css?v={HD_VERSION}">

<div class="container">
	<div class="content">
		<div class="item">
			<div class="top">
				<img src="{$initiate['school_logo']}" alt="">
				<div class="top-content">
					<span>{$initiate['school_name']}午托班</span>					
				</div>
				<span class="top-price"></span>
			</div>
			<div class="bottom">
				<span class="bottom-title">
					已加入的家长
					<i>({$count}/{$initiate['number']})</i>
				</span>
				<div class="bottom-img">
					<?php foreach($deps as $k => $v){?>
					<div>
						<img src="{$v['avatar']}" alt="">
					</div>
					<?php }?>
				</div>
			</div>
			{if $initiate['class_id'] == 0}
            <img class="sign" src="{__ROOT__}template/default/statics/img/faqi.png" alt="">
            {else}
            <img class="sign" src="{__ROOT__}template/default/statics/img/kaiban.png" alt="">
            {/if}	
		</div>
	</div>
	
	<div class="btn">
		<div class="tishi" >
			<img src="{SKIN_PATH}statics/img/ti-shi-.png" alt="">
            该校暂未开通安昕午托，您可以发起午托。申请人数达到{$initiate['number']}人即可开班，分享邀请能加速开班噢~系统和客服会及时通知您缴费哒~
		</div>
	</div>
	<div class="btn-view">
		<button class="btn3" iid="{$initiate['id']}">缴费</button>
		<button class="btn2" onclick="_system._guide(true)">邀请有礼</button>
	</div> 
</div>

<script type="text/javascript">
	$(".faqiBtn").click(function(){
		var iid = $(this).attr('iid');
		var ajaxurl="<?php echo url('member/index/initiate')?>"+"&iid="+iid;		
		window.location.href=ajaxurl;
	});
</script>
<?php include template('footer','common');?>